package com.event.ingestion.data;

import com.event.ingestion.common.Parsable;

public abstract class UserFriendsParser<T> implements Parsable<T> {
    @Override
    public Boolean isValid(String[] fields) {
        return (fields.length > 1 && !isEmpty(fields,new int[]{0,1}));
    }

    @Override
    public Boolean isHeader(String[] fields) {
        return (isValid(fields) && fields[0].equals("user_id") && fields[1].equals("friend_id)"));
    }
}
